package org.dromara.pe.domain.bo;


import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.pe.domain.DeviceApiLog;

/**
 * 【请填写功能名称】业务对象 phy_device_api_log
 *
 * @author Lion Li
 * @date 2024-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceApiLog.class, reverseConvertGenerate = false)
public class DeviceApiLogBo extends BaseEntity {

    /**
     * 接口日志id
     */
    @NotNull(message = "接口日志id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 接口id
     */
    @NotNull(message = "接口id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long apiId;

    /**
     * 调用类型（0-计划性 1-关联触发 2-指令操作）
     */
    @NotNull(message = "调用类型（0-计划性 1-关联触发 2-指令操作）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 调用参数
     */
    @NotBlank(message = "调用参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String param;

    /**
     * 0未完成,1成功,2失败,3异常,4直接入库
     */
    @NotNull(message = "0未完成,1成功,2失败,3异常,4直接入库不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 请求返回的数据 以json格式存储
     */
    @NotBlank(message = "请求返回的数据 以json格式存储不能为空", groups = { AddGroup.class, EditGroup.class })
    private String data;

    /**
     * 对方传来的logId
     */
    @NotNull(message = "对方传来的logId不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long logId;


}
